<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>form</title>
    <link rel="stylesheet" href="/static/bootstrap/bootstrap.min.css">
    <link rel="stylesheet" href="/static/colorbox/colorbox.css">
    <script src="/static/js/jquery-2.0.2.min.js"></script>
    <script src="/static/colorbox/jquery.colorbox-min.js"></script>
    <script src="/static/WdatePicker/WdatePicker.js"></script>
    <script src="/static/js/jquery_upload_file.js"></script>
    <script type="text/javascript" src="/static/ckeditor/ckeditor.js?t=C3HA5RM"></script>
    <script type="text/javascript" src="/static/ckeditor/adapters/jquery.js"></script>
    <script type="text/javascript">
        window.CKEDITOR_BASEPATH = '/static/ckeditor/';
        CKEDITOR.config.filebrowserImageUploadUrl = '';
        CKEDITOR.config.filebrowserLinkUploadUrl = '';
    </script>
    <style>
        body {
            font-size: 16px;
        }

        .form-control {
            display: inline-block;
            width: 500px;
        }
    </style>
</head>

<body>
    <table class="table table-bordered table-hover" style="width:100%;margin:0 auto;">
        <tr>
            <td>text</td>
            <td><%-form.text('title','title')%></td>
        </tr>
        <tr>
            <td>textarea</td>
            <td><%-form.textarea('textarea','你好')%></td>
        </tr>
        <tr>
            <td>select</td>
            <td><%-form.select('flag','1',{'0':'请选择','1':'显示','2':'隐藏'})%></td>
        </tr>
        <tr>
            <td>radio</td>
            <td><%-form.radio('top','0',{'1':'是','0':'否'});%></td>
        </tr>
        <tr>
            <td>checkbox</td>
            <td><%-form.checkbox('hobby[]',3,{'1':'足球','2':'排球','3':'篮球','4':'羽毛球'});%></td>
        </tr>
        <tr>
            <td>datetime</td>
            <td><%-form.datetime('time1','2020-10-30 9:51:23')%></td>
        </tr>
        <tr>
            <td>date</td>
            <td><%-form.date('date1','2020-10-30')%></td>
        </tr>
        <tr>
            <td>readonly</td>
            <td><%-form.readonly('wjid', '100', id1 = 'wjid', val2 = '测试问卷', id2 = 'wjid_title')%></td>
        </tr>
        <tr>
            <td>editor</td>
            <td><%-form.editor('content','666')%></td>
        </tr>
        <tr>
            <td>window</td>
            <td><%-form.window('/a/b/c?flag=1', 'catid', '299', 'catid', '体育', 'catid_title')%></td>
        </tr>
        <tr>
            <td>picture</td>
            <td><%-form.picture('/index/form/upload',{}, 'thumb', '', 'thumb')%></td>
        </tr>
        <tr>
            <td>document</td>
            <td><%-form.document('/index/form/upload',{}, 'document', '', 'document')%></td>
        </tr>
    </table>

    <br>
    <br>
    <br>
    <br>
    <br>
</body>

</html>